﻿<%@ Page Title="" Language="C#" MasterPageFile="~/WebMaster.master" AutoEventWireup="true" CodeFile="AddNewManual.aspx.cs" Inherits="meter_AddNewManual" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="panelEnter" runat="server">
    Hi <asp:LoginName ID="LoginName1" runat="server" />, please use the form 
		below to add a new electricity meter, or to update the details of an existing one. 
    	<br />
		<br />
		Name:
		<asp:textbox id="txtMeterName" runat="server" Width="286px"></asp:textbox>
		<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="txtMeterName"></asp:requiredfieldvalidator>
        <asp:ValidatorCalloutExtender ID="RequiredFieldValidator1_ValidatorCalloutExtender" 
            runat="server" Enabled="True" TargetControlID="RequiredFieldValidator1">
        </asp:ValidatorCalloutExtender>
        <br />
        <br />
        &nbsp;<asp:CheckBox ID="chkPrivate" runat="server" 
            Text="Remove my data from group totals" 
            TextAlign="Left" oncheckedchanged="chkPrivate_CheckedChanged" />
         <br /> 
        <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Add" />
        <br />
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
        <br />
        <br />
        <br />
    </asp:Panel>
    <asp:Panel ID="panelSaved" runat="server">
        Thanks, you have saved your meter  
        <asp:Label ID="lblNewMeter" runat="server" ></asp:Label> details. Why not
        <asp:HyperLink ID="hypAddReading" runat="server">add</asp:HyperLink> some readings?<br /><br />
        Click 
        <asp:HyperLink ID="hypUpdate"  runat="server">here</asp:HyperLink> to update the meter details.<br />
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
    </asp:Panel>
</asp:Content>

